<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="/lottery/js/question-src.js"></script>
<link href="/lottery/css/lottery.css" type="text/css" rel="stylesheet" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>抽奖结果页面</title>
<link rel="stylesheet" type="text/css" href="/lottery/css/lottery.css">
<script type="text/javascript" src="/lottery/js/question-src.js"> </script>
</head>
<body>
<div class="my" style="margin:0px;">
<div class="my1">活动期间，每天都有机会参加答题抽奖！</div>
<div class="my2 font3">
       <span class="font4 mzy10"> 第 <c:out value="${usedCount}"/>关</span>
	(你今日已回答 
	<c:out value="${usedCount}"/> 题，还可以回答
	 <c:out value="${avaliableCount}"/> 题）
</div>
 <div class="ri_my3">
 	<c:choose>
 		<c:when test="${flag == 'outOfPhase'}">
 			<div class="ri_font9">今天不在抽奖日期之内!</div>
 		</c:when>
 		<c:when test="${flag == 'noPrize'}">
 			<div class="ri_font9">对不起，今天差一点点运气!</div>
 		</c:when>
 		<c:otherwise>
 			<div class="ri_font9">恭喜你，获得"<c:out value="${prize.prizeName}"/>"!</div>
 		</c:otherwise>
 	</c:choose>
	
	<div class="ri_font10">
          <c:choose>
			<c:when test="${avaliableCount == '0'}">
				您已经回答了今天的所有问题!<br/>
                                         您可以明天继续来挑战<br/>
			</c:when>
			<c:otherwise>
				<p>今天还有 <span class="font1"> <c:out value="${avaliableCount}"/> </span>关，<br>
                                           您还可以挑战  <c:out value="${avaliableCount}"/> 次抽奖机会!</p>
			</c:otherwise>
		</c:choose>
    </div>
    
    
	<c:choose>
		<c:when test="${avaliableCount == '0'}">
			<div class="bt"><a href="<c:url value="/index.do"/>" target="_parent"><img src="/lottery/images/bt2.jpg" alt="" border="0" height="54" width="141"/></a></div>
		</c:when>
		<c:otherwise>
			<div class="bt"><a href="#" onclick="initQuestion();"><img src="/lottery/images/bt3.jpg" alt="" border="0" height="54" width="141"/></a></div>
		</c:otherwise>
	</c:choose>

</div>
<form action="" id="initQuestionForm"  name="initQuestionForm" method="post">
	<input type="hidden" name="phaseId" id="phaseId" value="<c:out value="${phaseId}"/>"/>
</form>
</div>

</body>
</html>